package com.zwl.sjzmanagement.controller;


import com.atguigu.tingshu.common.result.Result;
import com.zwl.minio.service.FileService;
import com.zwl.sjzmanagement.mapper.MaterialMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("api/item/itemInfo")
public class ItemInfoApiController {

    @Autowired
    private MaterialMapper materialMapper;

//    @Autowired
//    private FileService fileService;

    //  localhost:8001/api/item/itemInfo/materialList
//    @GetMapping("/materialList")
//    public Result materialList(){
//
//
//        return Result.ok(materialMapper.selectList(null));
//    }

//    @PostMapping("/fileUpload")
//    public Result fileUpload(MultipartFile file) throws Exception {
//        String picUrl = fileService.fileUpload(file);
//        return Result.ok(picUrl);
//    }


}
